<template>
  <div class="date-picker">
    <el-date-picker
      v-model="value1"
      type="datetime"
    />
  </div>
</template>
  
<script setup leng="ts">
import { ref } from "vue";
const value1 = ref("");
const defaultTime = new Date(2000, 1, 1, 12, 0, 0);

const shortcuts = [
  {
    text: "Today",
    value: new Date(),
  },
  {
    text: "Yesterday",
    value: () => {
      const date = new Date();
      date.setDate(date.getDate() - 1);
      return date;
    },
  },
  {
    text: "A week ago",
    value: () => {
      const date = new Date();
      date.setDate(date.getDate() - 7);
      return date;
    },
  },
];
</script>
  
  <style scoped>
</style>